package com.ybbase.framework.model.po.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;

/**
 * <p>
 * 版本记录
 * </p>
 *
 * @author cg
 * @since 2019-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_active_code")
@ApiModel(value="ActiveCode对象", description="版本记录")
public class ActiveCode extends Model<ActiveCode> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一编码")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "加密串")
    private String encryption;

    @ApiModelProperty(value = "开始日期")
    private Date startdate;

    @ApiModelProperty(value = "结束日期")
    private Date enddate;

    @ApiModelProperty(value = "ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "mac地址")
    private String macAddress;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
